<meta charset="UTF-8" />
<!-- #set(PaginatedList<Recharge> rechargeList) -->
<!--
		#set(
		rPager = rechargeList.pager,
		totalRResults = rPager.getCountOfTotalResults(),
		totalRPages = rPager.getCountOfTotalPages() * 1,
		pageSize = rPager.pageSize,
		pageRNo = rPager.pageNo,
		prePageRNo = rPager.getPrevPageNo(),
		nextPageRNo = rPager.getNextPageNo()
		)
-->
<!--#if(rechargeList)-->

<table id="rechargeRecord" class="table table-bordered table-hover table-condensed tb" style="text-align:center;">
	<tr>
		<td class="tb-chose">编号</td>
		<td class="tb-type">充值(元)</td>
		<td class="tb-type">实收(元)</td>
		<td class="tb-type">支付方式</td>
		<td class="tb-type">操作员</td>
		<td>备注</td>
		<td class="tb-long-time">时间</td>
	</tr>
	<!--#for(Recharge recharge : rechargeList)-->
		<tr>
			<td>${recharge.rechargeId}</td>
			<td>${recharge.recharge}</td>
			<td>${recharge.money}</td>
			<td>
			<!-- #if(recharge.type==1) -->
			现金
			<!-- #elseif(recharge.type==2) -->
			刷卡
			<!-- #elseif(recharge.type==3) -->
			转账
			<!-- #elseif(recharge.type==4) -->
			支票
			<!-- #else -->
			&nbsp;
			<!-- #end -->
			</td>
			<td>${recharge.user.userDetail.name}</td>
			<td>${recharge.remarks}</td>
			<td>${recharge.createTime.substring(0,19)}</td>
		</tr>
	<!--#end-->
</table>
	<div class="gzce-pagering">
		<ul class="pagination">
			<li><a href="javascript:void(0)" onclick="changeRPage(1)">首页</a></li>
			<!-- #if(pageRNo==1) -->
			<li class="disabled"><a href="javascript:void(0)">上一页</a></li>
			<!-- #else -->
			<li><a href="javascript:void(0)" onclick="changeRPage('${prePageRNo}')">上一页</a></li>
			<!-- #end -->
			<!-- #if(pageRNo==totalRPages) -->
			<li class="disabled"><a href="javascript:void(0)">下一页</a></li>
			<!-- #else -->
			<li><a href="javascript:void(0)" onclick="changeRPage('${nextPageRNo}')">下一页</a></li>
			<!-- #end -->
			<li><a href="javascript:void(0)" onclick="changeRPage('${totalRPages}')">尾页</a></li>
			<li><a>第<input id="txtPageRNumber" value="${pageRNo}" onkeyup="this.value=this.value.replace(/\D/g,'')" onblur="changeRPage(this.value)" type="text" />页&nbsp;~&nbsp;共${totalRPages}&nbsp;页/${totalRResults}条
			</a></li>
		</ul>
	</div>
<!-- #else -->
<div class="panel-body">
	没有符合条件的数据
</div>
<!-- #end -->
<script type="text/javascript">
	function changeRPage(value) {
		value = value * 1;
		var totalRPages = "${totalRPages}";
		if (value > totalRPages) {
			value = totalRPages;
		} else if (value < 1) {
			value = 1;
		}
		$("#txtPageRNumber").val(value);
		goToRPage(value);
	}
	
	function goToRPage(pageNo) {
		$("#rechargeHidPageNo").val(pageNo);
		document.rechargeForm.submit();
	}
</script>